package com.iot.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 用户服务
 */
@SpringBootApplication
@EnableFeignClients // 启用OpenFeign客户端
@EnableDiscoveryClient // 启用服务发现
@ComponentScan(basePackages = {"com.iot.common.*.*", "com.iot.user.*.**"})
public class IotUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(IotUserApplication.class, args);
    }

}
